package com.wnxy.admin.controller;

import com.wnxy.admin.common.ResponseResult;
import com.wnxy.admin.dto.ImagesDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import com.wnxy.admin.entity.TaskImages;
import com.wnxy.admin.service.ITaskImagesService;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author All
 * @since 2023-11-29
 */
@RestController
@RequestMapping("/task-images")
public class TaskImagesController {

    private final ITaskImagesService taskImagesServiceImpl;
    public TaskImagesController(ITaskImagesService taskImagesServiceImpl){
        this.taskImagesServiceImpl = taskImagesServiceImpl;
    }

    /*
    * 保存任务上传图片路径
    * */
    @PostMapping("/processingDetails")
    public ResponseResult processingDetails(@RequestBody ImagesDto imagesDto) {
        taskImagesServiceImpl.processingDetails(imagesDto);
        return ResponseResult.ok();
    }
}
